package top.leyi.api;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@ComponentScan(basePackages = {"top.leyi.handle", "top.leyi.ServiceImpl","top.leyi.exception","top.leyi.*"})

@ComponentScan(basePackages = {  "top.leyi.ServiceImpl","top.leyi.exception","top.leyi.config","top.leyi.dao"
                                ,"top.leyi.entity","top.leyi.factory","top.leyi.interceptor","top.leyi.RunnableImpl"
                                ,"top.leyi.utils","top.leyi.handle"})

@MapperScan("top.leyi.mapper")


public class ApiApplication {

    public static void main(String[] args) {
        SpringApplication.run(ApiApplication.class, args);
    }

}
